package com.learnyou.server.xingzuo.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author heweifeng
 * @Description:
 * @date 2022/11/20 16:34
 */

@Data
@Component
@ConfigurationProperties(prefix = "xingzuo.third.sms")
public class SmsConfig {

    private String secretId;
    private String secretKey;
    private String appId;
    private String signName = "领柚科技";
    private String verifyCodeTemplate;
    /**
     * 短信有效分钟数，默认5分钟内有效
     */
    private Integer verifyExpire = 5;

    /**
     * 发送短信开关
     */
    private Boolean enable;
}
